package cn.wingware.config;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Locale;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import cn.wingware.util.CommonUtils;

public class SysMessage extends CommonUtils {
	private static final Log log = LogFactory.getLog(SysMessage.class);
	// Ams Sys Msg
	public static final String AMS_MESSAGE_NICKNAME_NULL = "匿名";
	public static final String AMS_CONTENT_TYPE_XML = "text/xml;charset=utf-8";
	public static final String AMS_CONTENT_TYPE_HTML = "text/html;charset=utf-8";
	public static final String AMS_PUSH_USER_STATUS_ALL = "all";
	public static final String AMS_PUSH_USER_STATUS_ONLINE = "online";
	public static final String AMS_PUSH_USER_STATUS_OFFLINE = "offline";
	public static final String AMS_PUSH_USER_STATUS_LIST = "list";
	// rss应用大小格式显定义
	public static final String AMS_DOUBLEFOMRAT_COCULATEBYTE = "0.00";
	// 应用详情页面Tell a Friend 参数编码定义
	public static final String AMS_BUTTON_TELLAFRIEND_ENCODE = "UTF-8";
	public static final String AMS_CHARACTER_SET_UTF8 = "utf-8";
	// jsp页面http Header缓存配置常量
	public static final int MILLISECONDS_IN_SECOND = 1000;
	public static final String CACHE_CONTROL_HEADER = "Cache-Control";
	public static final String MAX_AGE_VALUE = "max-age=";
	public static final String PRE_CHECK_VALUE = "pre-check=";
	public static final String POST_CHECK_VALUE = "post-check=";
	public static final String LAST_MODIFIED_HEADER = "Last-Modified";
	public static final String EXPIRES_HEADER = "Expires";
	public static final DateFormat httpDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
	// lenovo privatekey
	// public final static String LENOVO_PRIVATE_KEY;//

	// public final static String LENOVO_PUBLIC_KEY;

	public static final String AMS_001 = "AMS-001";
	// 错误码 Ams Error Code
	public static final String AMS_308 = "AMS-308";
	public static final String AMS_400 = "AMS-400";
	public static final String AMS_401 = "AMS-401";
	public static final String AMS_403 = "AMS-403";
	public static final String AMS_404 = "AMS-404";
	public static final String AMS_409 = "AMS-409";
	public static final String AMS_500 = "AMS-500";
	public static final String AMS_503 = "AMS-503";
	public static final String AMS_999 = "AMS-999";
	public static final String ILLEAGL_PARAMETER = "参数不合法";
	// 业务处理码
	public static final String AMS_00006 = "AMS_00006";
	public static final String AMS_00007 = "AMS_00007";
	public static final String AMS_00008 = "AMS_00008";
	public static final String AMS_00009 = "AMS_00009";
	// end
	public static final int SC_CONTINUE = 100;
	public static final int SC_SWITCHING_PROTOCOLS = 101;
	public static final int SC_OK = 200;
	public static final int SC_CREATED = 201;
	public static final int SC_ACCEPTED = 202;
	public static final int SC_NON_AUTHORITATIVE_INFORMATION = 203;
	public static final int SC_NO_CONTENT = 204;
	public static final int SC_RESET_CONTENT = 205;
	public static final int SC_PARTIAL_CONTENT = 206;
	public static final int SC_MULTIPLE_CHOICES = 300;
	public static final int SC_MOVED_PERMANENTLY = 301;
	public static final int SC_MOVED_TEMPORARILY = 302;
	public static final int SC_FOUND = 302;
	public static final int SC_SEE_OTHER = 303;
	public static final int SC_NOT_MODIFIED = 304;
	public static final int SC_USE_PROXY = 305;
	public static final int SC_TEMPORARY_REDIRECT = 307;
	public static final int SC_AMS_NULL_CLIENTINFO = 308;
	public static final int SC_BAD_REQUEST = 400;
	public static final int SC_UNAUTHORIZED = 401;
	public static final int SC_PAYMENT_REQUIRED = 402;
	public static final int SC_FORBIDDEN = 403;
	public static final int SC_NOT_FOUND = 404;
	public static final int SC_METHOD_NOT_ALLOWED = 405;
	public static final int SC_NOT_ACCEPTABLE = 406;
	public static final int SC_PROXY_AUTHENTICATION_REQUIRED = 407;
	public static final int SC_REQUEST_TIMEOUT = 408;
	public static final int SC_CONFLICT = 409;
	public static final int SC_GONE = 410;
	public static final int SC_LENGTH_REQUIRED = 411;
	public static final int SC_PRECONDITION_FAILED = 412;
	public static final int SC_REQUEST_ENTITY_TOO_LARGE = 413;
	public static final int SC_REQUEST_URI_TOO_LONG = 414;
	public static final int SC_UNSUPPORTED_MEDIA_TYPE = 415;
	public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
	public static final int SC_EXPECTATION_FAILED = 417;
	public static final int SC_INTERNAL_SERVER_ERROR = 500;
	public static final int SC_NOT_IMPLEMENTED = 501;
	public static final int SC_BAD_GATEWAY = 502;
	public static final int SC_SERVICE_UNAVAILABLE = 503;
	public static final int SC_GATEWAY_TIMEOUT = 504;
	public static final int SC_HTTP_VERSION_NOT_SUPPORTED = 505;
	// //Ams Error Code Value
	// public static String MESSAGE_ERROR_CODE_001;
	// public static String MESSAGE_ERROR_CODE_400;
	// public static String MESSAGE_ERROR_CODE_401;
	// public static String MESSAGE_ERROR_CODE_403;
	// public static String MESSAGE_ERROR_CODE_404;
	// public static String MESSAGE_ERROR_CODE_409;
	// public static String MESSAGE_ERROR_CODE_500;
	// public static String MESSAGE_ERROR_CODE_503;
	// public static String MESSAGE_ERROR_CODE_UNKONWN;
	// Ams Sys Set
	public static final String CONSUME_TYPE_ALL = "1";
	public static final String CONSUME_TYPE_WAIT_DOWN = "2";
	public static final String CONSUME_TYPE_UPDATE = "3";
	/** 已下载应用 */
	public static final String CONSUME_APPSTATE_DOWN = "4";
	/** 待下载应用 */
	public static final String CONSUME_APPSTATE_WAITDOWN = "5";
	/** 更新应用 */
	public static final String CONSUME_APPSTATE_UPDATE = "6";

	public static final String AMS_308_MSG = "需要重新注册客户端信息";

	public static final String AMS_00000 = "第一次请求订单，正常处理中";
	public static final String AMS_00001 = "订单处理中";
	public static final String AMS_00002 = "订单支付成功";
	public static final String AMS_00003 = "订单支付失败";
	public static final String AMS_00004 = "签名错误";
	public static final String AMS_00005 = "订单不存在";
	/** 是否兼容 */
	public static final Boolean isCompatible = false;

	public SysMessage() {
		log.info("-------------------【Ams子系统】开始初始化自定义资源信息完毕！----------------------");
	}
}
